
NTL_DEFINE_ERROR( NTL_FAIL )
NTL_DEFINE_ERROR( NTL_APP_EXIT )

NTL_DEFINE_ERROR( NTL_ERR_SYS_MEMORY_ALLOC_FAIL )
NTL_DEFINE_ERROR( NTL_ERR_SYS_CONFIG_FILE_READ_FAIL )
NTL_DEFINE_ERROR( NTL_ERR_SYS_LOG_SYSTEM_INITIALIZE_FAIL )
NTL_DEFINE_ERROR( NTL_ERR_SYS_PROFILE_INITIALIZE_FAIL )
NTL_DEFINE_ERROR( NTL_ERR_SYS_INPUT_PARAMETER_WRONG )
NTL_DEFINE_ERROR( NTL_ERR_SYS_OBJECT_ALREADY_CREATED )
NTL_DEFINE_ERROR( NTL_ERR_SYS_TYPE_CASTING_FAIL )
NTL_DEFINE_ERROR( NTL_ERR_SYS_OPTION_FILE_READ_FAIL )

NTL_DEFINE_ERROR( NTL_ERR_DBC_HANDLE_ALREADY_ALLOCATED )
NTL_DEFINE_ERROR( NTL_ERR_DBC_HANDLE_IS_INVALID )
NTL_DEFINE_ERROR( NTL_ERR_DBC_ENVIRONMENT_ALLOC_FAIL )
NTL_DEFINE_ERROR( NTL_ERR_DBC_ENVIRONMENT_SETATT_FAIL )
NTL_DEFINE_ERROR( NTL_ERR_DBC_CONNECTION_ALLOC_FAIL )
NTL_DEFINE_ERROR( NTL_ERR_DBC_CONNECTION_CONNECT_FAIL )
NTL_DEFINE_ERROR( NTL_ERR_DBC_STATEMENT_ALLOC_FAIL )
NTL_DEFINE_ERROR( NTL_ERR_DBC_STATEMENT_PREPARE_FAIL )
NTL_DEFINE_ERROR( NTL_ERR_DBC_BIND_PAREMTER_FAIL )
NTL_DEFINE_ERROR( NTL_ERR_DBC_BIND_COLUMN_FAIL )
NTL_DEFINE_ERROR( NTL_ERR_DBC_CALL_SQLEXECUTE_FAIL )
NTL_DEFINE_ERROR( NTL_ERR_DBC_CALL_SQLFETCH_FAIL )
NTL_DEFINE_ERROR( NTL_ERR_DBC_CALL_SQLMORERESULT_FAIL )
NTL_DEFINE_ERROR( NTL_ERR_DBC_DATABASE_FIND_FAIL )
NTL_DEFINE_ERROR( NTL_ERR_DBC_DATABASE_SQL_PRECREATE_FAIL )

NTL_DEFINE_ERROR( NTL_ERR_NET_NETWORK_ALREADY_CREATED )
NTL_DEFINE_ERROR( NTL_ERR_NET_NETWORK_NOT_CREATED )
NTL_DEFINE_ERROR( NTL_ERR_NET_ACCEPTOR_ALREADY_CREATED )
NTL_DEFINE_ERROR( NTL_ERR_NET_ACCEPTOR_ASSOCIATE_FAIL )
NTL_DEFINE_ERROR( NTL_ERR_NET_CONNECTOR_ALREADY_CREATED )
NTL_DEFINE_ERROR( NTL_ERR_NET_CONNECTOR_ASSOICATE_FAIL )
NTL_DEFINE_ERROR( NTL_ERR_NET_INVALID_COMPLETE_IO_MODE )
NTL_DEFINE_ERROR( NTL_ERR_NET_INVALID_COMPLETE_IO_HANDLE )

NTL_DEFINE_ERROR( NTL_ERR_NET_CONNECTION_CREATE_FAIL )
NTL_DEFINE_ERROR( NTL_ERR_NET_CONNECTION_POOL_ALLOC_FAIL )
NTL_DEFINE_ERROR( NTL_ERR_NET_CONNECTION_ADD_FAIL )
NTL_DEFINE_ERROR( NTL_ERR_NET_CONNECTION_REMOVE_FAIL )
NTL_DEFINE_ERROR( NTL_ERR_NET_CONNECTION_NOT_EXIST )
NTL_DEFINE_ERROR( NTL_ERR_NET_CONNECTION_IO_NOT_COMPLETED )
NTL_DEFINE_ERROR( NTL_ERR_NET_CONNECTION_STATUS_WRONG )
NTL_DEFINE_ERROR( NTL_ERR_NET_CONNECTION_SEND_FAIL )

NTL_DEFINE_ERROR( NTL_ERR_NET_SESSION_RECV_BUFFER_OVERFLOW )
NTL_DEFINE_ERROR( NTL_ERR_NET_SESSION_SEND_BUFFER_OVERFLOW )
NTL_DEFINE_ERROR( NTL_ERR_NET_SESSION_CREATE_FAIL )
NTL_DEFINE_ERROR( NTL_ERR_NET_SESSION_CLOSED )
NTL_DEFINE_ERROR( NTL_ERR_NET_SESSION_ADD_FAIL )

NTL_DEFINE_ERROR( NTL_ERR_NET_PACKET_INVALID )
NTL_DEFINE_ERROR( NTL_ERR_NET_PACKET_OPCODE_WRONG )
NTL_DEFINE_ERROR( NTL_ERR_NET_PACKET_ENCRYPT_FAIL )
NTL_DEFINE_ERROR( NTL_ERR_NET_PACKET_DECRYPT_FAIL )
NTL_DEFINE_ERROR( NTL_ERR_NET_PACKET_CHECKSUM_FAIL )
NTL_DEFINE_ERROR( NTL_ERR_NET_PACKET_SEQUENCE_FAIL )
NTL_DEFINE_ERROR( NTL_ERR_NET_PACKET_PENDING_HEADER )
NTL_DEFINE_ERROR( NTL_ERR_NET_PACKET_PENDING_DATA )
NTL_DEFINE_ERROR( NTL_ERR_NET_PACKET_EXCEED_ALLOWED_SIZE )

NTL_DEFINE_ERROR( NTL_ERR_NET_THREAD_CREATE_FAIL )
NTL_DEFINE_ERROR( NTL_ERR_THREAD_CREATE_FAIL )
NTL_DEFINE_ERROR( NTL_ERR_THREAD_POOL_CREATE_FAIL )
